<?php
$error_msg= $this->session->userdata('error_msg');

if (isset($error_msg)&& $error_msg!="") { ?>
    <div id="message-red">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tbody><tr>
                    <td class="red-left"><?= $error_msg ?></td>
                    <td class="red-right"><a class="close-red"><img src="<?= ADMIN_IMG ?>table/icon_close_red.gif" alt=""></a></td>
                </tr>
            </tbody></table>
    </div>
<?php $this->session->unset_userdata('error_msg'); } $success_msg = $this->session->userdata('success_msg'); ?>

<?php if (isset($success_msg) && $success_msg!="") { ?>


    <div id="message-green">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tbody><tr>
                    <td class="green-left"><?= $success_msg ?></td>
                    <td class="green-right"><a class="close-green"><img src="<?= ADMIN_IMG ?>table/icon_close_green.gif" alt=""></a></td>
                </tr>
            </tbody></table>
    </div>

    <?php
    $this->session->unset_userdata('success_msg');
}?>